home *** CD-ROM | disk | FTP | other *** search
- property sp, offsetList, boxRect, boxBottom, boxRight
-
- on new me, asp
- me.sp = asp
- puppetSprite(me.sp, 1)
- offsetList = [point(331, 443), point(331, 437), point(331, 431), point(332, 426), point(333, 421), point(336, 416)]
- me.boxRect = the rect of sprite me.sp
- boxBottom = me.boxRect.bottom
- boxRight = me.boxRect.right
- return me
- end
-
- on updateRect me, aNum
- l = getAt(offsetList, aNum).locH
- t = getAt(offsetList, aNum).locV
- r = boxRight
- b = boxBottom
- set the rect of sprite the sp of me to rect(l, t, r, b)
- end
-